/**index.scss**/
page {
  background: #fff;
}

.scrollarea {
  flex: 1;
  padding: 16px;
  margin-bottom: 50px;
}

.userinfo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.userinfo-avatar {
  overflow: hidden;
  width: 128rpx;
  height: 128rpx;
  margin: 20rpx;
  border-radius: 50%;
}

.usermotto {
  margin-top: 200px;
}

.avatar-wrapper {
  padding: 0;
  width: 56px !important;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.avatar {
  display: block;
  width: 56px;
  height: 56px;
}

.nickname-wrapper {
  display: flex;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  border-top: .5px solid rgba(0, 0, 0, 0.1);
  border-bottom: .5px solid rgba(0, 0, 0, 0.1);
  color: black;
}

.nickname-label {
  width: 105px;
}

.nickname-input {
  flex: 1;
}

.statistics {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: linear-gradient(180deg, #e8f0fe, #ffffff);
  
  .stat-item {
    text-align: center;
    
    text:first-child {
      font-size: 24px;
      font-weight: bold;
      color: #333;
    }
    
    text:last-child {
      font-size: 14px;
      color: #666;
    }
  }
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100rpx;
  background: #fff;
  border-top: 1rpx solid #eee;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    .iconfont {
      font-size: 40rpx;
      margin-bottom: 4rpx;
      color: #999;
    }
    
    text:last-child {
      font-size: 24rpx;
      color: #999;
    }
    
    &.active {
      .iconfont,
      text:last-child {
        color: #6e8efb;
      }
    }
  }
}

// 统计卡片样式
.stats-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  
  .stat-item {
    flex: 1;
    text-align: center;
  }
  
  .stat-num {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 12px;
    color: #666;
  }

  .stat-divider {
    width: 1px;
    height: 30px;
    background: #eee;
  }
}

// 倒计时卡片样式
.countdown-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #6e8efb, #4a6feb);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  
  .countdown-title {
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .countdown-time {
    display: flex;
    justify-content: center;
    align-items: center;
    
    .time-item {
      background: rgba(255,255,255,0.2);
      padding: 8px 12px;
      border-radius: 6px;
      text-align: center;
      
      .time-num {
        font-size: 24px;
        font-weight: bold;
      }
      
      .time-label {
        font-size: 12px;
        margin-left: 2px;
      }
    }
    
    .time-separator {
      margin: 0 8px;
      font-size: 20px;
      font-weight: bold;
    }
  }
}

// 活动规则卡片
.rules-card {
  margin-top: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  
  .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
  }
  
  .time-line {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    
    .time-label {
      color: #666;
      width: 80px;
    }
    
    .time-value {
      color: #333;
      flex: 1;
    }
  }
}

.page-container {
  padding: 0;
  min-height: 100vh;
  padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
  
  .header-section {
    padding: 0;
    margin: 0;
    height: 400rpx;
    background: linear-gradient(180deg, #6e8efb, #4a6feb);
    
    .banner {
      width: 100%;
      height: 100%;
      border-radius: 0;
      box-shadow: none;
      
      image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }
  }

  .stats-section {
    margin: 0 30rpx 40rpx;
    padding: 40rpx;
    background: #fff;
    border-radius: 24rpx;
    box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20rpx;

    .stat-item {
      text-align: center;
      
      .num {
        font-size: 48rpx;
        font-weight: bold;
        background: linear-gradient(135deg, #2B32B2, #1488CC);
        -webkit-background-clip: text;
        color: transparent;
        line-height: 1.2;
      }
      
      .label {
        font-size: 26rpx;
        color: #666;
        margin-top: 8rpx;
      }
    }
  }

  .projects-section {
    padding: 0 30rpx;
    
    .section-title {
      font-size: 34rpx;
      font-weight: bold;
      color: #333;
      margin-bottom: 30rpx;
      display: flex;
      align-items: center;
      
      &::before {
        content: '';
        width: 6rpx;
        height: 34rpx;
        background: #2B32B2;
        margin-right: 16rpx;
        border-radius: 3rpx;
      }
    }

    .project-list {
      .project-item {
        background: #fff;
        border-radius: 24rpx;
        padding: 30rpx;
        margin-bottom: 30rpx;
        box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
        transition: all 0.3s ease;
        
        &:active {
          transform: scale(0.98);
        }
        
        .project-header {
          display: flex;
          align-items: center;
          margin-bottom: 24rpx;
          
          .project-title {
            flex: 1;
            font-size: 32rpx;
            font-weight: bold;
            color: #333;
          }
          
          .vote-count {
            background: linear-gradient(135deg, #2B32B2, #1488CC);
            padding: 8rpx 20rpx;
            border-radius: 100rpx;
            color: #fff;
            font-size: 26rpx;
            
            .num {
              font-weight: bold;
              margin-right: 4rpx;
            }
          }
        }
        
        .project-info {
          display: flex;
          margin-bottom: 20rpx;
          
          .cover {
            width: 200rpx;
            height: 200rpx;
            border-radius: 12rpx;
            margin-right: 20rpx;
          }
          
          .info-right {
            flex: 1;
            
            .team {
              font-size: 28rpx;
              color: #666;
              margin-bottom: 12rpx;
            }
            
            .desc {
              font-size: 26rpx;
              color: #999;
              line-height: 1.6;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
              overflow: hidden;
            }
          }
        }
        
        .project-footer {
          display: flex;
          justify-content: space-between;
          align-items: center;
          
          .tags {
            display: flex;
            flex-wrap: wrap;
            
            .tag {
              padding: 4rpx 16rpx;
              background: #f0f7ff;
              color: #4A90E2;
              font-size: 24rpx;
              border-radius: 100rpx;
              margin-right: 12rpx;
            }
          }
          
          .view-btn {
            padding: 12rpx 30rpx;
            background: #4A90E2;
            color: #fff;
            font-size: 26rpx;
            border-radius: 100rpx;
          }
        }
      }
    }
  }
}

.header {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 30rpx;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30rpx;
}

.stat-item {
  text-align: center;
  
  .num {
    font-size: 48rpx;
    font-weight: bold;
    display: block;
  }
  
  .label {
    font-size: 24rpx;
    opacity: 0.8;
  }
}

.countdown-box {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10rpx;
  padding: 20rpx;
  text-align: center;
  
  .time {
    background: #ff6b6b;
    padding: 4rpx 12rpx;
    border-radius: 6rpx;
    margin: 0 6rpx;
    font-weight: bold;
  }
  
  .unit {
    margin-right: 20rpx;
    opacity: 0.8;
  }
}

.rules-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20rpx;
  padding: 30rpx;
  
  .title {
    font-size: 32rpx;
    font-weight: bold;
    margin-bottom: 20rpx;
  }
  
  .time-item {
    margin-bottom: 16rpx;
    font-size: 28rpx;
    
    .label {
      opacity: 0.8;
      margin-right: 10rpx;
    }
  }
  
  .bonus-rule {
    font-size: 28rpx;
    opacity: 0.8;
  }
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100rpx;
  background: #fff;
  border-top: 1rpx solid #eee;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    .tab-icon {
      width: 48rpx;
      height: 48rpx;
      margin-bottom: 6rpx;
    }
    
    text {
      font-size: 24rpx;
      color: #999;
    }
    
    &.active {
      text {
        color: #6e8efb;
      }
    }
  }
}

.submit-btn {
  width: 100%;
  height: 88rpx;
  background: linear-gradient(90deg, #ff6b6b, #ff4d4f);
  color: #fff;
  font-size: 32rpx;
  border-radius: 44rpx;
  margin-top: 40rpx;
  border: none;
  
  &:active {
    opacity: 0.9;
  }
}

.login-btn {
  width: 300rpx;
  height: 80rpx;
  line-height: 80rpx;
  background: linear-gradient(90deg, #ff6b6b, #ff4d4f);
  color: #fff;
  font-size: 28rpx;
  border-radius: 40rpx;
  margin: 30rpx auto;
  border: none;
  
  &:active {
    opacity: 0.9;
  }
}

.works-section {
  padding: 30rpx;
  
  .works-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20rpx;
    padding-bottom: 120rpx;
    
    .work-item {
      background: #fff;
      border-radius: 16rpx;
      overflow: hidden;
      box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
      transition: all 0.3s ease;
      border: 1rpx solid #f0f0f0;
      
      &:active {
        transform: scale(0.96);
        box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
      }
      
      .work-media {
        position: relative;
        width: 100%;
        height: 220rpx;
        background: #f5f5f5;
        
        .work-video,
        .work-cover {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
        
        .vote-badge {
          position: absolute;
          right: 12rpx;
          top: 12rpx;
          background: linear-gradient(135deg, #ff5757, #ff7676);
          padding: 4rpx 12rpx;
          border-radius: 20rpx;
          display: flex;
          align-items: baseline;
          box-shadow: 0 2rpx 8rpx rgba(255, 87, 87, 0.3);
          backdrop-filter: blur(4px);
          
          .vote-count {
            font-size: 24rpx;
            color: #fff;
            font-weight: bold;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          }
          
          .vote-unit {
            font-size: 20rpx;
            color: rgba(255, 255, 255, 0.9);
            margin-left: 2rpx;
          }
        }
      }
      
      .work-info {
        padding: 12rpx 16rpx;
        min-height: 72rpx;
        display: flex;
        align-items: center;
        background: #fff;
        
        .work-title {
          font-size: 26rpx;
          font-weight: 500;
          color: #333;
          line-height: 1.4;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
          text-align: center;
          width: 100%;
        }
      }
    }
  }
}

// 加载更多提示
.loading-more {
  text-align: center;
  padding: 30rpx 0;
  color: #999;
  font-size: 24rpx;
}

// 页面容器样式
.page-container {
  min-height: 100vh;
  background: #f7f8fa;
  padding-top: env(safe-area-inset-top);
}

// 头部banner样式
.header-section {
  background: #fff;
  padding: 20rpx 30rpx;
  margin-bottom: 20rpx;
  
  .banner {
    width: 100%;
    height: 300rpx;
    border-radius: 16rpx;
    overflow: hidden;
    
    image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

// 统计数据样式
.stats-card {
  background: #fff;
  padding: 30rpx;
  margin-bottom: 20rpx;
  display: flex;
  justify-content: space-around;
  align-items: center;
  
  .stat-item {
    text-align: center;
    
    .num {
      font-size: 36rpx;
      font-weight: bold;
      color: #333;
      margin-bottom: 8rpx;
      display: block;
    }
    
    .label {
      font-size: 24rpx;
      color: #999;
    }
  }
}
